package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.ImgsGoods;
import com.woniu.supermarket.vo.ImgsGoodsDataVo;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface ImgsGoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ImgsGoodsDataVo record);

    ImgsGoods selectByPrimaryKey(Integer id);

    List<ImgsGoods> selectAll();

    int updateByPrimaryKey(ImgsGoods record);

    @Delete("delete from g_imgs_goods where goods_id = #{value}")
    void deleteByGoodId(int gid);

    void deleteBatchIGDVByIds(int[] ids);
}